package com.CST.controller;

import com.CST.common.api.ResultObject;
import com.CST.dto.DateDTO;
import com.CST.service.IDataAccountingService;
import io.swagger.annotations.Api;
import oracle.jdbc.proxy.annotation.Post;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "数据核算")
@RequestMapping("/dataAccounting")
public class DataAccountingController {
    
    @Autowired
    private IDataAccountingService dataAccountingService;
    
    @PostMapping("/directAmortization")
    public ResultObject directAmortization(@RequestBody DateDTO dateDTO){
        return dataAccountingService.directAmortization(dateDTO);
    }
}
